package com.crud.demo1.demos.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 
 * </p>
 *
 * @author ZhangNing
 * @since 2025-02-27
 */
@Data
@TableName("t_flow_step_def")
@ApiModel(value = "TFlowStepDef对象", description = "")
public class TFlowStepDef implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "流程步骤 ID stepNo不能为空")
    @ApiModelProperty("流程步骤 ID 主键，从 1 开始自增")
      @TableId(value = "Step_no", type = IdType.AUTO)
    private Integer stepNo;

    @NotBlank(message = "流程步骤名称Step_name不能为空")
    @ApiModelProperty("流程步骤名称")
    @TableField("Step_name")
    private String stepName;

    @ApiModelProperty("时限 单位（天）")
    @TableField("Limit_time")
    private Integer limitTime;

    @ApiModelProperty("流程步骤描述")
    @TableField("Step_des")
    private String stepDes;

    @ApiModelProperty("链接地址")
    @TableField("URL")
    private String url;


}
